package 设计模式.策略模式;

public class main {


    public static void main(String[] args) {

        /**
         * 简单策略模式
         */
        stragery stragery = new stragery(new dog());
        System.out.println(stragery.animalLive());

        stragery stragery2 = new stragery(new fish());
        System.out.println(stragery2.animalLive());
    }
}
